terraform {
  required_version = ">= 0.14"

  required_providers {
    alicloud = {
      source = "hashicorp/alicloud"
      version = "1.153.0"
    }
  }
}

provider "alicloud" {
  profile = "default"
}

module "vpc" {
  source = "../"

  vpc_name        = "ebike"
  vpc_cidr        = "10.10.0.0/16"
  vpc_description = "测试vpc"
  vpc_tags        = {
    created = "Terraform"
  }

  vswitch_name       = "ebike"
  availability_zones = ["cn-hangzhou-b", "cn-hangzhou-g", "cn-hangzhou-h"]
  vswitch_cidrs      = ["10.10.1.0/24", "10.10.2.0/24", "10.10.3.0/24"]
  vswitch_tags       = {
    created = "Terraform"
  }

  enabled_nat_gateway = false
  nat_gateway_name    = "ebike"
  nat_gateway_tags    = {
    created = "Terraform"
  }

}